$(window).load(function () {

    //Open street  Map
    var coord = [40.738270, -74.008911]; // <--- coordinates here

    var map = L.map('map-canvas', {scrollWheelZoom: false}).setView(coord, 19);

    L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
        maxZoom: 22,
        attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
    }).addTo(map);


    // custom icon
    var customIcon = L.icon({
        iconUrl: 'img/mapmarker.png',
        iconSize: [64, 64], // size of the icon
        iconAnchor: [32, 63] // point of the icon which will correspond to marker's location
    });

    // marker object, pass custom icon as option, add to map
    var marker = L.marker(coord, {icon: customIcon}).addTo(map);
});